﻿Public Class TaskStateCompleted
    Inherits TaskState

    Public Overrides Sub initForm(ByVal form As TaskForm, ByRef task As Task)
        form.cboProject.Enabled = False
        form.cboTaskType.Enabled = False
        form.txtTaskName.Enabled = False
        form.rtxtObservations.Enabled = False
        form.cboProjectMembers.Enabled = False
        form.dtpEstimatedFromDate.Enabled = False
        form.dtpEstimatedToDate.Enabled = False
        form.txtRealStartDate.Text = task.startDateProperty

        form.dtpDate.Enabled = False
        form.txtStartHour.Enabled = False
        form.txtEndHour.Enabled = False
        form.txtProgressTask.Enabled = False
        form.rtxtProgressTaskObservations.Enabled = False

        form.cmdAdd.Enabled = False
        form.cmdRemove.Enabled = False
        form.cmdSave.Visible = False
        form.cmdStartTask.Visible = False
    End Sub
End Class
